package com.kuang.service;

import com.kuang.dao.BookMapper;
import com.kuang.dao.ReaderMapper;
import com.kuang.pojo.Books;
import com.kuang.pojo.Readers;

import java.util.List;


public class ReaderServiceimpl implements ReaderService{

    private ReaderMapper readerMapper;

    public void setReaderMapper(ReaderMapper readerMapper) {
        this.readerMapper = readerMapper;
    }

    public int addReader(Readers readers) {
        return readerMapper.addReader(readers);
    }

    public int deleteReaderById(int id) {
        return readerMapper.deleteReaderById(id);
    }

    public int updateReader(Readers readers) {
        return readerMapper.updateReader(readers);
    }

    public Readers queryReaderById(int id) {
        return readerMapper.queryReaderById(id);
    }

    public List<Readers> queryAllReader() {
        return readerMapper.queryAllReader();
    }

    public List<Readers> queryReaderByNo(String readersNo) {
        return readerMapper.querReaderByNo(readersNo);
    }


}
